package com.ruoyi.project.travel.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.MbEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.util.Date;

/**
 * 广告信息 对象 tr_advertising
 *
 * @author ruoyi
 * @date 2020-06-14
 */
@Data
@TableName("tr_advertising")
@ApiModel(value="tr_advertising对象", description="广告信息 ")
public class Advertising extends MbEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "广告描述")
    @TableField("content")
    @ApiModelProperty(value = "广告描述")
    private String content;

    @Excel(name = "图片地址")
    @TableField("url")
    @ApiModelProperty(value = "图片地址")
    private String url;

    @Excel(name = "点击跳转")
    @TableField("click_to")
    @ApiModelProperty(value = "点击跳转")
    private String clickTo;

    @Excel(name = "广告类型")
    @TableField("type")
    @ApiModelProperty(value = "广告类型")
    private Long type;

    @Excel(name = "操作人编号")
    @TableField("operator_id")
    @ApiModelProperty(value = "操作人编号")
    private Long operatorId;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getClickTo() {
        return clickTo;
    }

    public void setClickTo(String clickTo) {
        this.clickTo = clickTo;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Advertising{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", clickTo='" + clickTo + '\'' +
                ", type=" + type +
                ", operatorId=" + operatorId +
                ", createTime=" + createTime +
                '}';
    }
}
